
import Bind.ViewToModelFramework;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Caio
 */
public class Presenter {
    Frame frame = new Frame();
    
    
    public Presenter(){
       frame.setVisible(true);
       final Cliente cliente = new Cliente();
       
        frame.getjButton1().addActionListener(new ActionListener() {
           
            @Override
            public void actionPerformed(ActionEvent e) {
                try {
                    new ViewToModelFramework(cliente, frame);
                    System.out.println("");
                } catch (Exception ex) {
                    Logger.getLogger(Presenter.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });
    }
    
}
